<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    .box{
        width: 400px;
        border:solid 1px #000;
    }
    img{ 
        width: 50%;  border-top: solid 1px red;
        border-bottom: solid 1px blue;
    }
    </style>
</head>
<body>
    <div class="box">
    <img src="../img/g.jpg"/>
        <img src="../img/g.jpg" />
        <img src="../img/g.jpg" />
    
    </div>
</body>
</html>